package com.huazhi.wzsnw.mapper;

import com.huazhi.wzsnw.model.Lined;
import com.huazhi.wzsnw.model.LinedTj;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LinedMapper {
    int deleteByPrimaryKey(String tid);

    int insert(Lined record);

    int insertSelective(Lined record);

    Lined selectByPrimaryKey(String tid);

    int updateByPrimaryKeySelective(Lined record);

    int updateByPrimaryKey(Lined record);

    List<String> getLinedByNumber(@Param("number") String number);

    List<Lined> getAll();

    List<String> selectListTidByKey(@Param("search") String search);

    List<String> selectListTidByKeyWithUrl(@Param("search") String search , @Param("sxtzt") String sxtzt);

    List<Lined> findPagingByListTid(@Param("listTid") List<String> listTid, @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    Lined getByDtu(@Param("dtu")String dtu);

    int updateStateByNumber(@Param("state")String state,@Param("number")String number);

    Lined getLinedByField(@Param("field")String field,@Param("value")String value);

    List<LinedTj> getDeviceOfLined();

    Lined getVideoOfLined(@Param("cunweihui")String cunweihui);

    Lined seletLineByCun(String cun);

    List<Lined> selectByname(String name);

    List<Lined>  selectBuState(String state);
    List<Lined> selectOnlySxt();

    int updateSxtztByVideoId(@Param("sxtzt") Integer sxtzt,@Param("videoTid") String videoTid);

    Lined selectByVideoTid(@Param("videoTid") String videoTid);


}